import { createRouter, createWebHistory } from 'vue-router';

const routes = [
    { path: '/', component: () => import('../views/Index.vue') },
    { path: '/businessList', component: () => import('../views/BusinessList.vue') },
    { path: '/businessInfo', component: () => import('../views/BusinessInfo.vue') },
    { path: '/login', component: () => import('../views/Login.vue') },
    { path: '/orders', component: () => import('../views/Orders.vue') },
    { path: '/orderList', component: () => import('../views/OrderList.vue') },
    { path: '/payment', component: () => import('../views/Payment.vue') },
    { path: '/userAddress', component: () => import('../views/UserAddress.vue') },
    { path: '/addUserAddress', component: () => import('../views/AddUserAddress.vue') },
    { path: '/editUserAddress', component: () => import('../views/EditUserAddress.vue') },
    { path: '/register', component: () => import('../views/Register.vue') },
    { path: '/discover', component: () => import('../views/Discover.vue') },
    { path: '/profile', component: () => import('../views/Profile.vue') }
];

const router = createRouter({
    history: createWebHistory(),
    routes
});

export default router;
